/************************************************************
 *  * HONGHE CONFIDENTIAL
 * __________________
 * Copyright (C) 2014-2015 HONGHE Technologies. All rights reserved.
 *
 * NOTICE: All information contained herein is, and remains
 * the property of HONGHE Technologies.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from HONGHE Technologies.
 * The author is knight(卢远强), ios software engineer.
 */
<?php  
//require_once("Home/Lib/Action/PublicAction.class.php");
require_once("PHPUnit.php");

class CheckUser extends PHPUnit_Framework_TestCase   
{   
	
	function request_by_other($remote_server,$post_string){
	$context = array(
	'http'=>array(
	'method'=>'POST',
	'header'=>'Content-type: application/x-www-form-urlencoded'."\r\n".
	'User-Agent : Jimmy\’s POST Example beta'."\r\n".
	'Content-length:'.strlen($post_string)+8,
	'content'=>'mypost='.$post_string)
	);
	$stream_context = stream_context_create($context);
	$data = file_get_contents($remote_server,FALSE,$stream_context);
	return $data;
	}
	
	function setUp()   
	{   
		
	}   
	//最后消亡的时候清除掉这个类   
	function tearDown() {
		
	}   
	function checkLoginUser()   
	{
		$post_string = "username=adb&password=123";
		$re = $this->request_by_other('http://user.cwddd.com/public/checkuser?',$post_string);
		$re->toString();
		$this->assertEquals(true,false);
		
	}
}   
	